small debug check to verify matlab code works