changes to stacking to avoid after class from failing
added amissing parenthesis