modification of alarm callfunc