move protected area to the bottom and remove unused lines as well as halfTimeStep method.