adding three lines on amo method