edited model, changed float to double