Added final else case in getcontent