updated the skeleton code