Optimize deletes, remove extra loop for shortening height