add inline modifier for method