change phase argument to accept the fractional part of the inputed value