edited from lab_pc