added profile scope method code snippet