corrects return value from method