added debug statements to getexp