add two input for ip and type