stashing some reference code