print statement added at the end