added set paid function