code written for retrieval,final touches required,still incomplete