fixing isssue where procuts array would be deleted