added support for % as a unit type