add limit to phi values when determining k