apply is done