fixed range block

edit lines 36-52