trying to resolve issue with warnings