fixing type on logger call