generating helper