implement computing cost
implemet save user data