removed old sample code