changing sample data to simple list