solve all problems with sort of variables in java backend