first version of working ragadjust