solving some bugs in the creation