try uncompression ndk outside of if/else