to log function calls