added in contact details to custom function