adding helper function into hand
fixing conflicts