excess halogenoalkane reacts with primary amines to form secondary amines, with secondary amines to form tertiary amines, and with tertiary amines to form quaternary ammonium salts. ammonium salts can not act as nucleophiles as they do not have lone pairs