updated script to provide default range