made each single function inline or static