remove warnings. Turning off the deprecated functions warning is problematic, but I added a //TODO: comment on each instance.