pre-replace by modification made on bigdog
added modifications made on bigdog which resulted in program crashing