fixed SJF. should have no more memory probs