changing condition to assignment -_-