removed wall function