changed createFunc to fix some bugs occuring due to scheduler impl and
calls to create