add variables range to check condition