parse function for id added to book model