implemented dynamic voltage maximum