* code for task#1580.