encoding now working for retrieval tasks; potential efficiency problem