implemented function commands