added an escape when user enters 0