corrected to offset x/y for placement and drag