added if empty for resources