add inline to easy statements to get better performance.
add some documentation