adding frequency conversion

already reviewed - ok