changed some integers to float and things worked better