added None check for process