removing unnecessary return values