add learning rate parameter that can make learning rate constant