need a test to validate this API