added support for UIOffset