feed logic