fixing BASE variable issue