asp function snippet added