added graphics rendering