added correct logging