rewrote supercell and atom multiplications