added currency function