fixed variable declaration error and call to calculate_reconstructionError error