added functions for building skeleton