factors affecting weight