adding support function