resolving cache no such var issues