added a shadow
changed offset handling