added distinct constructor params for float and int