added create views function