moving file declaration to correct place