compiler warning fixed non-void method returning nothing