log with prev