Made changes to top and pop