fix style
add functions