add difficulty information
calculate complexity