[solving a problem like maria]