surface: use magic number for checking valid of surface