added table alignment code
merge of retrieve_medicine