fixed redundancy in graphics