The synthesis, N-alkylation and epimerisation study of a phthaloyl derived thiazolidine