get rid of main div variable being passed around