remove unused statement which is creating exceptions