added skeleton visualization code