adding cache clearing