fixed performance issue
refactored REcipe.java