added ip as argument