code refine for purchase back
FIX BUGS