added multiple frame rendering