tried function