fixed api inconsistency