potential undefined variable fixed