a simple decorator