coding gists for reference