new way to input the initial values