adding multiple box function