misc codes used during research