delete code further to make it simpler to understand