adjusting calculations