* code for task#1670.