code clean up provider
add comment