settled the crud function to quantity type