add method for create_resources