updated to work with elements.cs.pitt.edu