using before create instead of before save