move and fix memoize decorator