..F....... [ZBX-8339] simplified the code