changed some parameters (yeah yeah, they shouldn't be constants)