implemented usage of undefined variable