add api for size