tested for version Joomla 3.x