oops, fix bug of not returning second variable