prevents metadata from going outside the view