parse BED properly