working on Fedor's task