fixed some accuracy issues