log function's added