integrating switchDetail