working on apply