use before_create instead of before_save