lifecycle rules