added candidate code