#apply code again