move constants to attributes