replaced all floats by doubles and ints by unsigned