added y accumulated offset