add some guards for buffergeometry types