* code for task#1678.