* code for task#1779.