introduce a kill process method