ver_4

automatically set rest amount