fixed print and return value