checkemtions and output to file