added new code preview for types