set id for created grades