solves many LINT errors

solves many LINT errors