final Script with graph views