changed bad logging