divide chip attributes to two functions and add unfinished chip rotation