making apply work