global definition for all + bug resolve