pull algo working