updating for loggng