just changed a little thing in the check ceiling method.