adding helper divWrapper function