cleaned up minPoints assignment