balance between str & end