added function CreateParent and redisigned for first non-standart path