added before* methods

I've added two simple methods with the concept of after but with before* instead.