finish auxiliary funct for create shadow