fixing errors
add param
changing codes