hw4 add ccs and viewport