fixes some accuracy issues