my miscellaneous code