updating to include border width in position