removing warning message  unused variable