fixing amcl 5