undefined variable problem solved