added conditional for contact