changed A to float. Also tested completely