updated
More work on create sub