removed viewport code