dumb logic error