fixed wrong return type / compiler warning