adding cache to output