checkout functions added