learning rest parameters