call function
fixed associated aof code