add metod for adding resource in hash-table