implemented Mass input