added inits and tails