int changed to double