it's strange that ```locT``` is ```double```. I believe it should be ```int```