auto define start and end if didn't specify for scale