variable was declared twice