sample data and some functions added