doubles instead of ints where needed