add more functions

Added functions using cursor