device simulation