initial version, there is a defect - a file named 2 is being created