start to handle index