function signature did not match up closes #36 and closes #40