triangle bug removed and disp fixed