added moveTop to reduce repetition