a piece of code before bedding