sample code from older projects