adding locks for events, instead of modifying attributes