refactored so that user only has to pass in id number, not id hash