edited more CRUD functions