fixed definitions of ceiling and floor