added a log to the on create method