checkout helper method