misinterpretted how the has method works so changed it so that it works