changing order of export and adding spaced