created devices model and scaffold