indentation fix and type of log errors