eliminated compiler warning by going back to dot notation