modified switchDetail