added clone pattern to devices