changed to print func, now python3 compatable