fixed dumb logic mistake