modified parse to evaluate input