added rename to the main file