add detial function
version 1.1