visual phase calculation first iteration