trying to get the result printing to work