stripping out useless functions for angular transition