use poses instead of multiple variables, extra parameters