.......PS. [ZBX-6163] fixed variables declaration order