function 'dobrar' working