trying to fix in range bug