add check ip method