converted to rem units, added functions for it