add phase and complex sampling