svg type handling added