new way to declare RW resource