done the first and second steps