add both devices add few lines to accept both