or function has problem