range excluding script, still lacks some error checking