fixes some quality errors