now runs properly