Turntable changed into piviot table