check return type of methods (done)