updated so it doesn't error when processing is done