isolate prints out of functions
optimize translation