removed unused variables from resources