change before_save to after_initialize