changed to process in background