removes <k> elements