adding local x and y for digi