worked on tiles input