remove unecessary code and and debug flag for angular