prepare for check out
refactor index