changed print to return in prepare run