Fix api for more clarity
Bug: specify length