inline the simple function