changed A calcuation