fixed intitial values for variables so it compiles on Pi