improvements on create class