refacts some codes.
add contents.
fix a bug.