add subject functionality