Fix print to make it functional form