use offset instead of empty element