fixed a major bug where I miscalculated the adaptation time