add ceil to prevent overcome wall