added ~ before showResources logic