modif for pcm location & 

added fix for grid implementation