event resources
split into two methods