fix: quantity function to use new method name

quantity function to use new method name