filter input from model