added ami's code

not array slice