using getStackTraceElement for stack trace