reworked GetContent function