fixing api inconsistency