removed extra code from user_spec and item_spec