added static to afterclass function