move constants outside handle