changed print to return