some stuff for liquid crystal modelling