simplified boundary handling
use offset for left boundary correction in global id
working now