fixing purchase method parameters