quick implementation api for SMA