range error fixed for param var declarations