fixed print return value; needs tests added