* code for task#1780.