adds create functionality