get rid of extra print statements to work wtih spark