adding helper codes