modified to work with Questa 10.1d