code with error: begining of variable input size