added bit/seg map, made y more readable