process and king code