fixed main to call perscription properly