removed the unnecessary use of declaring vars