need to ensure functionality of sort and remove