changed to print function, to be python 3 compatibe