implemented custom JSTL function