correctting takeresourceAction