simplifying upload process by using higherarchy