tidy up top method