fixed erroro (using args instead of resources)