fixed the warning the right way