convert complexity to integer in case nil