updated for changes made to db