modified stationary and created 1/4 phases code