renamed img to images and dat to data